<div nz-row>
  <div nz-col [nzOrder]="formOrder" [nzXXl]="12" [nzXl]="12" [nzLg]="24" [nzMd]="24" [nzSm]="24" [nzXs]="24">
    <form [nzLayout]="'horizontal'" nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="stableFlag">稳定性</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="稳定性">
          <nz-radio-group formControlName="stableFlag">
            <label nz-radio [nzValue]="true">稳定</label>
            <label nz-radio [nzValue]="false">不稳定</label>
          </nz-radio-group>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="dangerReaction">危险反应</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="危险反应">
          <input nz-input formControlName="dangerReaction" id="dangerReaction" placeholder="危险反应"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="forbidTouch">避免接触的条件</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="避免接触的条件">
          <input nz-input formControlName="forbidTouch" id="forbidTouch" placeholder="避免接触的条件"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="forbidGoods">禁忌物</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="禁忌物">
          <input nz-input formControlName="forbidGoods" id="forbidGoods" placeholder="禁忌物"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="polymerizationFlag">聚合危害</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="聚合危害">
          <nz-radio-group formControlName="polymerizationFlag">
            <label nz-radio [nzValue]="true">聚合</label>
            <label nz-radio [nzValue]="false">不聚合</label>
          </nz-radio-group>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="fireGoods">危险分解产物</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="危险分解产物">
          <input nz-input formControlName="fireGoods" id="fireGoods" placeholder="危险分解产物"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item *ngIf="AdminService.isAdmin" nz-row class="register-area">
        <nz-form-control [nzSpan]="12" [nzOffset]="12">
          <button nz-button nzType="primary">确定</button>
        </nz-form-control>
      </nz-form-item>
    </form>
  </div>
</div>
<ng-template #combineTpl let-control>
  <ng-container *ngIf="control.hasError('message')">{{control.errors['message']}}</ng-container>
  <ng-container *ngIf="control.hasError('required')">必填项</ng-container>
</ng-template>


